# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-craft
pkgver=0_git20210317
pkgrel=0
_commit="d0de2c6d3ff9d971d5c23c796bcb208498f635a9"
pkgdesc="a simple Minecraft clone written in C using modern OpenGL"
url="https://github.com/libretro/Craft"
arch="all"
license="MIT"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Craft/archive/$_commit.tar.gz"
builddir="$srcdir/Craft-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 craft_libretro.so "$pkgdir"/usr/lib/libretro/craft_libretro.so
}

sha512sums="8fa0abcc3501540cc37f04e309c64443fd57a22da2ea7eb5f90be5a3a947ac6479fc1565d299282c3fc90abaa714be8d905ebf1d5a5c94210df27b94e3a2fdbe  libretro-craft-d0de2c6d3ff9d971d5c23c796bcb208498f635a9.tar.gz"
